Part Number Hot Search : 
AM27S45A AIDM160 RTD2553V BD304P FP6143 1M350 FP6143 0603H
Product Description
Full Text Search
 

To Download ML2517 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 Rev. 1.5 Jun 18, 1999
ML2517
n General Description
Preliminary
Analog-Storage Single-chip Record/Playback LSI with 4M Bit-Cell Flash Memory
Thanks to a newly developed Analog Multi-Level Storage technology, the ML2517 stores noncompressed analog source signals directly into an on-chip 4M Bit-Cell Flash memory. The result is superb sound quality without the noise and distortions introduced through coding and decoding, and an impressive long-time record/playback capability of up to 17 minutes. The ML2517 is fully controllable by an external MCU via the industry standard SPI (Serial Peripheral Interface). In addition, the no backup requirement and the low operating voltage (2.7 to 3.3 V) make the ML2517 an ideal choice for compact, handy and portable terminals. The ML2517 is a true single-chip solution for a record/playback subsystem practical for use with today's size-critical electronic products.
n Features
l On-chip non-volatile 4M bit-cell Flash memory Program/Erase Cycles Data Retention l MCU Interface Serial Peripheral Interface (SPI; Mode 0 and Mode 1) l Record/Playback Time Length (With the int. Osc. or ext. clock at 8.192 MHz) ap. 640 sec ap. 723 sec ap. 1,024 sec (At fsam = 6.4 KHz) (At fsam = 5.3 KHz) (At fsam = 4.0 KHz) : 10,000 cycles : 10 years
l Selectable Sampling Frequencies 4.0 KHz, 5.3 KHz, 6.4 KHz (guaranteed) 4.0 KHz, 5.3 KHz, 6.4 KHz, 8.0KHz (target) l Dual record/play mode 1. Sequential record/play mode 2. Random access record/play mode l Dual mode storage of analog and/or digital data Digital storage size is variable from 2Kbit to 4Mbit. 2Kbit data write time : ap. 406 msec ( using WRDT1 command ) 4Kbit data write time : ap. 531 msec ( using WRDT2 command ) 2Kbit data read time : ap. 380 msec
1 of 38
ML2517 l Built-in microphone amplifier l Built-in LPF / Smoothing Filter (LPF attenuation - 40dB/oct) Cutoff frequency scales with oscillator and sampling frequency l Built-in Oscillation Circuit, No oscillator required Optional external clock input (Clock Frequency 1.0 MHz to 8.192 MHz) l Power Supply l Package l Operating Temperature : 2.7 to 3.3 V : 32-pin Plastic SOP (SOP32-P-525-1.27K) : -10C to +70C (guaranteed) : -40C to +85C (target)
2 of 38
ML2517
n BLOCK DIAGRAM
MOUT LIN LOUT
MIN
LPF
AOUT
SG
SG
Analog Write & Read Circuits 4M Bit Cell Analog Storage Flash Memory Array
TEST1 TEST2
ROSC
Internal Oscillator
EXTCLK
MUX
Address Decoder Power Supplies
AVDD AGND
Serial Peripheral Interface & Controller
RESET
CS
SCK
DI
DO
NAR
MON
DVDD
DGND
3 of 38
ML2517
n PIN COFIGURATION (TOP VIEW)
32-pin Plastic SOP (SOP32-P-525-1.27-K)
MON DO DI SCK CS RESET DV DD NC NC AVDD SG MIN MOUT LIN LOUT TEST2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17
NAR EXTCLK TEST2 TEST2 TEST2 ROSC DGND NC NC AGND TEST2 TEST2 TEST2 TEST1 AOUT TEST2
NC : No connection. (Keep NC pins open. )
4 of 38
ML2517
n PIN DESCRIPTION
Pin
6
Symbol
RESET
Type
I
Description
RESET input pin, resets the serial interface circuit only. A low level input to this pin initializes the serial interface. A low pulse after each power-on reset is required. Chip select pin. A low level input enables data input/output through the serial interface. Shift clock input pin for the DI and the DO pins. Serial input pin for command data. Serial output pin for status data. Outputs a high level when the next address input is acceptable during the Random Access Mode. Outputs a high level during recording/playback operations, erase operations, and digital data read/write operations. External clock input pin. Allowable clock frequency range is 1.0 MHz to 8.192 MHz. When an external clock is not used and an internal oscillation clock in used, connect this pin to the DGND. Insert a 33k resistor (1% tolerance) between this pin and the DGND pins. Also, in external clock input case's, insert a resistor. The frequency of the internal oscillation circuit is determined by this resistor. Analog reference voltage (Signal Ground Voltage) output pin. Insert a capacitor no larger than 3300 pF between this pin and the AGND pin. Analog waveform output. Connect to an amplifier to drive an external speaker. Output pin from the internal OP AMP (operational amplifier). Inverting input pin for the internal OP AMP . Non-inverting input pin is internally connected to SG voltage. Output pin from the internal OP AMP . Inverting input pin for the internal OP AMP . Non-inverting input pin is internally connected to SG voltage. Pin for testing the ML2517, must be connected to DGND. Pins for testing the ML2517, must be left unconnected. Digital power supply pins. Insert a 0.1 F or larger by-pass capacitor between these pins and the DGND pins Digital Ground pins. Analog power supply pin. Insert a 0.1 F or larger by-pass capacitor between this pin and the AGND pin. Analog Ground pin.
5 4 3 2 32 1
CS SCK DI DO NAR MON
I I I O O O
31
EXTCLK
I
27
ROSC
I
11 18 15 14 13 12 19 16,17,20, 21,22,28 29,30 7 26 10 23
SG AOUT LOUT LIN MOUT MIN TEST1 TEST2
O O O I O I I O
DVDD DGND AVDD AGND
-
5 of 38
ML2517
n ABSOLUTE MAXIMUM RATINGS
Parameter Power Supply Voltage Input Voltage Storage Temperature Symbo l VDD VIN TSTG Condition Rating -0.3 to +5.0 -0.3 to VDD+0.3 -55 to +150 Unit V V C
Ta = 25C
n RECOMMENDED OPERATING CONDITIONS
Parameter Power Supply Voltage Operating Temperature External Clock Frequency Connection ROSC pin Register
*1
Symbo l VDD TOP fEXTCLK RROSC for
Condition DGND = AGND = 0V -
Rating 2.7 to 3.3 -10 to +70 1.0 to 8.192 33 1%
Unit V C MHz K
*1: Applicable only with external clock
n ELECTRICAL CHARACTERISTICS DC Characteristics
DVDD = AVDD = 2.7 V to 3.3 V, DGND = AGND = 0 V, Ta = -10 to +70C
Parameter
high Input Voltage *1 low Input Voltage *1 high Output Voltage *2 low Output Voltage *2 high Input Current *1 low Input Current *1 Operating Current Consumption 1 Operating Current Consumption 2 Operating Current Consumption 3 Power down Current Consumption Symbol VIH VIL VOH VOL IIH IIL IDD1 IDD2 IDD3 IDDS
Condition
DGND=AGND=0V IOH=-400A IOL=2mA VIH=VDD VIL=0V
Min. 0.8xVDD VDD-0.3 -10 -
Typ. 30 20 5 -
Max. 0.2xVDD 0.45 10 45 30 10 10
Unit V V V V A A mA mA mA A
In Recording Operation In Playback Operation In Ready for command
-
*1: Applicable to logic input pins (DI, SCK, CS, RESET and EXTCLK) except ROSC and TEST1 pins. *2: Applicable to logic output pins (DO, NAR and MON) except TEST2 pin.
6 of 38
ML2517
Analog Characteristics
DVDD = AVDD = 2.7V ~ 3.3V, DGND = AGND = 0V, Ta = -10 ~ +70C
Parameter OP Amp. Input Impedance *1 OP. Amp. Open Loop Gain *2 OP. Amp. Load Resistance *3 AOUT Load Resistance *4 Symbo l
RINA GOP ROUTA RAOUT
Condition fIN = 0 ~ 4 KHz -
Min. 1 40 200 50
Typ. -
Max. -
Unit M dB K K
*1: Applicable to MIN and LIN pin. *2: Applicable to MIN, MOUT, LIN and LOUT pins. *3: Applicable to MOUT and LOUT pin. *4: Applicable to AOUT pin.
n TIMING DIAGRAM
Operational Timing at Power-On
To initialize the internal serial interface circuit of ML2517 after power-on, you must input a low pulse to the RESET pin with the timing shown below. The ML2517 enters the initializing cycles by inputting a high level to the RESET pin. During the initializing cycles, the ML2517 outputs a high level to the MON pin. After the MON pin is brought to L level, the ML2517 enters the standby state ( Ready status) with the timing shown bellow. In this state the ML2517 accepts command input, for example, REC or PLAY command.
Timing for inputting RESET pulse at Power-on VDD
2.7V
tRST
1s
tINIT
56ms
RESET(I)
MON(O)
Status
Reset cycles
Initializing
Ready for command
7 of 38
ML2517
Timing for Power Up and Power Down Operations
ML2517 stops its oscillation circuit to shift to the power-down state either by the PDWN command or by receiving a low level on the RESET pin. In the power-down state the ML2517 is in a low power consumption mode. Two options are available to power up the ML2517 again after power down by the PDWN command: 1. Input a low pulse to the RESET pin, or 2. Input a low level to the CS pin. The following charts show timings for the power up and power down operations. Timing for power-down operation by using the PDWN command Power up by CS pin tCSWL 1s
PDWN command CS(I)
Power Up by RESET pin
RESET(I) tPDWN 100s Status
Power Down Ready for command
tRST 1s
tPWUP 1ms
Power Up cycles Ready for command
Timing for Power-down operation with the RESET pin Power down by RESET pin RESET(I) tPDWN 100s Status
Power Down Ready for command
Power up by RESET pin
tPWUP 1ms
Power Up cycles Ready for command
8 of 38
ML2517
Timing for Record/Playback Operation
1. Timing for Recording Operation The following chart shows timing for a recording operation at 6.4 KHz sampling frequency. It is assumed that the Start and Stop Addresses are set by the STADR and SPADR commands prior to the REC command input. REC command CS(I) tRECM MON(O) tRECR tSPCR STOP command tSPCM
RPM bit (O)
30ms(Typ.)
40ms(Max). 250ms(Max) 250ms(Typ.)
Status
Erasing High voltage stable time Ready for command
Recording
Ready for command Dummy recording
(Note 1) It takes about 280 ms (Typ.) for the ML2517 to start actual recording after the REC command input, as the ML2517 first erases 1 sector before it can start recording. (Note 2) When recording is stopped by the STOP command, the ML2517 continues to record until the last address of the current page is reached. This "lag" recording time is the STOP command of about 40 ms (Max.). Afterwards, dummy recording is taken place up to the end of the following sector (max. 2 sectors). This dummy recording takes about 250 ms (Max). 2. Timing for Playback Operation The following chart shows timing for playback operation at 6.4 kHz sampling frequency. It is assumed that the Start and Stop Addresses are set by the STADR and SPADR commands prior to the PLAY command input. PLAY command STOP command CS(I) tPLYM MON(O ) RPM bit (O) T PLYR
30ms(Typ.) tSPCM 70ms ( Max)
tSPCR 165s
AOUT(O)
Status
Playing back High voltage stable time Ready for command
Ready for command Stopping cycles
9 of 38
ML2517
(Note) It takes about 70 ms (Max.) for the ML2517 to stop playback as Stopping cycles after STOP command input.
3.
Timing for Pausing Operation by the PAUSE Command
The following charts show timings for pausing recording operation by using the PAUSE command at 6.4 kHz sampling frequency. PAUSE command CS(I) MON(O) RPM bit (O) tPSCP VPM bit (O) tSPCP PAUSE command
Status
Recording
Pausing
Recording
PAUSE command CS(I)
STOP command
tSPCM MON(O) RPM bit (O) VPM bit (O) tSPCR tPSCP tSPCP
40ms(Max.)
250ms(Max)
Recording
Status
Recording
Pausing
Ready for command Dummy recording
(NOTE) If the STOP command is input while recording is suspended by the PAUSE command, the ML2517 resumes recording and keeps on recording until the last address of the current page is reached. This "lag" recording time is about 40 ms (Max.). Afterwards, dummy recording is taken place up to the end of the following sector (max. 2 sectors). This dummy recording takes about 250 ms (Max).
10 of 38
ML2517 The following charts show timings for pausing playback by using the PAUSE command at 6.4 kHz sampling frequency.
PAUSE command CS(I) MON(O) RPM bit (O) tPSCP VPM bit (O)
PAUSE command
tPSCP
AOUT(O)
Status
Playing back
Pausing
Playing back
PAUSE command CS(I)
STOP command tSPCM
70ms (Max)
MON(O) tSPCR RPM bit (O) VPM bit (O) tPSCP
330s
tSPCP
165s
AOUT(O) Status
Playing back Ready for command Stopping cycles
Pausing
11 of 38
ML2517 4. Address specification timing in the Random Access Mode In Random Access Mode, the record/playback addresses are set by a master MCU. The following timing diagram shows the address specification timing for a recording operation ( sampling frequency = 6.4 KHz, block size = 8 sectors ) This timing diagram is also Applicable to Playback operations and Erase operations as well. STADR command
REC command CS(I) tRECM MON(O) RPM bit (O) tRECR
NAR(O)
2.1875s(Typ) 30ms(Typ.) 250ms(Typ.) Erasing
1 block Recording 1 block Recording 1 block Recording 1 block Recording
312.5ms(Typ.)
Status
Ready for command High voltage stable time
2.50s(Typ.)
The following are explanations of the NAR (Next Address Request) signal status in each operation. NAR is activated only in Random Access Mode. NAR is fixed at a low level in Sequential Mode. In Random Access Mode, the NAR signal goes high when another address request is acceptable after a REC, PLAY or ERASE command is sent to the ML2517 , and then goes high again when another address request is acceptable. Successively when the next address is set by a STADR command, the NAR signal goes low again. The sequence described above is repeated until the stop address specified by the SPADR command is reached or a STOP command is received. If a SPADR command is not received during the NAR signal maintains a high level, the ML2517 starts recording and playback from the following block. The time maintaining a high level on the NAR signal indicates that the ML2517 is recording or playback for the number of sectors per 1 block minus 1 sector.
12 of 38
ML2517 5. Digital data write timing The digital data write timing diagram is shown below. It is assumed that the Start Addresses is set by the STADR command prior to the WRDT1 command or WRDT2 command input.
WRDT1 or WRDT2 CS(I) MON(O) PGM bit (O)
30ms(Typ.) 250ms(Typ.) 15.6ms(Typ.)
WRDT1 or WRDT2
15.6ms(Typ.)
15.6ms(Typ.)
Status
Erasing High voltage stable time Ready for command Ready for command Writing 250-bit data
6. Digital data read timing The timing diagram of a digital data read operation invoked by the SETRD command diagram is shown below. It is assumed that the Start Addresses is set by the STADR command prior to the SETRD command input.
SETRD command CS(I) MON(O) READ bit (O)
30ms(Typ.) 30ms(Typ.)
Status
Reading 250-bit data High voltage stable time Ready for command
After issuing the SETRD command, the MON signal goes high while reading the 250-bits of data. The master MCU can know the data ready timing by the MON signal going low again.
13 of 38
ML2517
n Flash Memory Configuration
The ML2517 is equipped with 4Mbit cells (4,096,000 cells). The memory space is classified into 2,048 sectors, 2,000 bit cells each. Each sector is divided into 8 pages, 250 bit cells each. (See below) Address bits A13 ~ A3 define the sector addresses, A2~A0 define the page addresses.
Total memory space : 4,096,000 bit cells
Sector address (A13~A3)
Sector 0H
Sector 1H
Sector 2H
Sector 3H
...
Sector 7FDH
Sector 7FEH
Sector 7FFH
2,000 bit cells per Sector
Page address (A2~A0)
Page 0H
Page 1H
Page 2H
Page 3H
Page 4H
Page 5H
Page 6H
Page 7H
250 bit cells per Page
Flash Memory addressing
The Page is the minimum addressable unit of the ML2517's built in memory management. For some operations, the Sector is the minimum addressable unit. For most operations, the start address must be specified in Sector units. (In Random Access Mode described later, the Block: multiple sectors are the minimum addressable unit) On the other hand, the stop address of most operations can be specified in Page units. In this case, the remaining bit cells of the last sector are not usable, unless the sector is erased and re-recorded. More detailed discussion will be made in the following sections.
14 of 38
ML2517
n FUNCTIONAL DESCRIPTION
There are two Record/Playback modes provided by the ML2517 as follows. 1. 2. Sequential Mode Random Access Mode
1. Sequential Mode
In the Sequential Mode, the ML2517 records or plays back the input signal into or from the flash cells between the specified start-address and stop-address. The stop-address must be larger than startaddress. Using the Sequential Mode, record/playback operation is realized with a simple control procedure. The start-address in the recording mode can be specified by Sector address units (ap. 312.5 msec unit : at 6.4KHz sampling). The stop-address in the recording mode can be specified by Page address units (ap. 39 msec unit : at 6.4KHz sampling). The playback start/stop-addresses can be specified by Page address units. The following chart shows a sample of memory usage in the Sequential Mode.
Total memory space Phrase 1 area Phrase 2 area Phrase 3 area
After recording
Phrase 1
Phrase 2
Phrase 3
Unused area
Using this method the start and stop addresses of each phrase are stored in the built-in flash memory, this allows the information for the recording area addresses to be retained automatically when the power supply is off.
15 of 38
ML2517 Flash memory addressing in Sequential Mode In Sequential Mode, the recording start address is specified in Sector units (A13~A3). The recording stop address and playback start/stop addresses can be specified in Page units (A13~A0). The following table shows the minimum controllable time unit for each sampling frequency.
Addressing Record start address Record stop address Playback start/stop address
Unit A13~A3 A13~A0
Unit time for each sampling rate 6.4KHz 5.3KHz 4.0KHz 312.5msec 39.06msec 377.35msec 46.88msec 500msec 62.5msec
16 of 38
ML2517
2. Random Access Mode
The Random Access Mode uses the memory in Block units and can specify the recording Blocks in random order. This mode is suitable to record and playback phases of a variable length of voice (or sound) without wasting memory. Usually with a voice messaging system (such as two way pager, voice memo system etc.), different length messages are recorded, erased and re-recorded. The Random Access Mode is provided for such kinds of applications. The start-address is specified by Block units, and is specified before recording into a new Block. Four different Block sizes can be selected. Recording can start at any specified Block. Recording can continue, hopping to any specified Blocks in random order, until the memory is filled.
Block n Block n-1 625 msec @6.4K sampling and 2 sectors per block Block 5 Block 4 Block 3 Block 2 Block 1 Block 0
1 4
4 3 3 2 2 1 Phrase 2 Phrase 1
Flash memory
By providing a TOC (Table of Contents) in the flash memory, recorded data information can be kept even when the power supply is off. Recorded analog data is inherently retained through power cycles due to the non volatile flash memory technology. The host MCU can reserve some blocks to use as a TOC. These blocks can be used by the host MCU as data sectors to retain this sector allocation information through power cycles.
17 of 38
ML2517 Flash memory addressing in Random Access Mode In Random Access Mode , the record start address is specified by Sector address units (A13~A3). The record stop address is specified by Page address units (A13~A0). The playback start/stopaddresses are specified by Page address units. The next record/playback addresses are specified by Block address units after the ML2517 starts recording or playback. Each Block is several numbers of continuous Sectors. The number of sectors in one Block is defined by the MODE command, one of four Block size is selectable (2 Sectors~16 Sectors / Block ) For more details, refer to the MODE command description. The following table shows the minimum controllable time unit for each sampling frequency.
Minimum controllable time unit Addressing Record start address Recording start address (Block unit) Record stop address Playback start/stop address 2 Sectors 4 Sectors 8 Sectors 16 Sectors Sectors/Block Addressing range A13~A3 A13~A4 A13~A5 A13~A6 A13~A7 A13~A0 6.4KHz 312.5msec 625msec 1.25sec 2.5sec 5.0sec 39.06msec 5.3KHz 377.35msec 750msec 1.5sec 3.0sec 6.0sec 46.88msec 4.0KHz 500msec 1.0sec 2.0sec 4.0sec 8.0sec 62.5msec
18 of 38
ML2517
n Control commands
ML2517 is controlled by receiving the following commands from a master MCU through a SPI serial communication link. This is a synchronous protocol, so 4 or 8 bit MCUs can send these commands in groups of whatever bit width is most convenient. 16, 32, or 64 bit MCUs can create 4, 8, ..., bit width commands with the CS signal (bits shifted into the ML2517 when CS is false are ignored). 1. MODE command (1H)
The MODE command and the succeeding 12-bits of data specify the record/playback mode, clock mode, external clock dividing rate, and the block size for the Random Access Mode. The latter half of the succeeding 12-bit data ( last 6 bits ) must be "0" because these bits are used for internal circuit testing.
MSB
0
0
0
1
MODE
CLK
DEV1
DEV0
MODE command
LSB BS0 0 0 0 0 0 0
BS1
MODE 0 1 CLK 0 1 DEV1 DEV0 0 0 1 1 BS1 0 0 1 1 0 1 0 1 BS0 0 1 0 1
Record/playback mode Sequential Mode Random Access Mode Clock mode Internal clock External clock External clock divide ration No divide 1/2 1/4 1/8 Block size 2 sectors 4 sectors 8 sectors 16 sectors
After power-on reset, all data bits are initialized to "0". Please note that the reset pulse input to the RESET pin never changes these mode data bits, all data bits keep the previous status. When using the external clock mode, divided clock frequency must be 1.024MHz.
19 of 38
ML2517
2. REC command (2H)
The REC command and the succeeding 4-bit data initiate recording. This command can be used with either the Sequential Mode or the Random Access Mode. Recording starts at the specified startaddress and continues to the specified stop-address or terminates if a STOP command is received. The succeeding 4-bit data is to define a sampling frequency, as shown in the table below. When the sampling frequency is not defined with this command, recording is made at the last defined sampling frequency. When reset and powered up, recording is set at 6.4 kHz the default sampling frequency.
MSB
LSB
0
0
1
REC command
0
-
SA2
SA1
SA0
SA2 0 0 0 0 1 1 1 1
SA1 0 0 1 1 0 0 1 1
SA0 0 1 0 1 0 1 0 1
Sampling frequency 4.0KHz 5.3KHz 6.4KHz (default) Do not use this value * 1.0KHz 2.0KHz 2.67KHz 3.2KHz
Note 1
Note 1: The proper operation is not guaranteed by setting this value
20 of 38
ML2517
3. PLAY command (3H)
The PLAY command and the succeeding 4-bits of data initiate playback. This command can be used with either the Sequential Mode or the Random Access Mode. Playback starts at the specified start-address and continues to the specified stop-address or terminates after a STOP command is received. The succeeding 4-bits of data are to define a sampling frequency, same as with the REC command. When the sampling frequency is not defined with this command, playback is made at the last defined sampling frequency. When reset and powered up, playback is set at 6.4 kHz the default sampling frequency.
MSB
LSB
0
0
1
1
-
SA2
SA1
SA0
PLAY command
SA2 0 0 0 0 1 1 1 1
SA1 0 0 1 1 0 0 1 1
SA0 0 1 0 1 0 1 0 1
Sampling frequency 4.0KHz 5.3KHz 6.4KHz (default) Do not use this value * 1.0KHz 2.0KHz 2.67KHz 3.2KHz
Note 1
Note 1: The proper operation is not guaranteed by setting this value
21 of 38
ML2517
4. STOP command (4H)
Record or playback stops after a STOP command is received. This command can be used either with the Sequential Mode or the Random Access Mode. Any data following this command is disregarded.
MSB LSB
0
1
0
0
STOP command
5. PAUSE command (5H)
The host MCU can temporarily suspend record or playback by the PAUSE command. This command can be used with either the Sequential Mode or the Random Access Mode. Any data following this command is disregarded. Re-issuing this command resumes the suspended operation. If the STOP command is issued while pausing, the pause state is also stopped.
MSB LSB
0
1
0
1
PAUSE command
22 of 38
ML2517
6. ERASE command (6H)
The ERASE command and the succeeding 4-bits of data, erase the recorded data in the specified address area. This command can be used with either the Sequential Mode or the Random Access Mode. "Erase the recorded data" means storing silent data. The succeeding 4-bits of data define a sampling frequency, same as with the REC command. When the sampling frequency is not defined with this command, it is set to the last defined sampling frequency. When reset and powered up, erase is set at 6.4 kHz the default sampling frequency.
MSB
LSB
0
1
1
0
-
SA2
SA1
SA0
ERASE command
SA2 0 0 0 0 1 1 1 1
SA1 0 0 1 1 0 0 1 1
SA0 0 1 0 1 0 1 0 1
Sampling frequency 4.0KHz 5.3KHz 6.4KHz (default) Do not use this value * 1.0KHz 2.0KHz 2.67KHz 3.2KHz
Note 1
Note 1: The proper operation is not guaranteed by setting this value
23 of 38
ML2517
7. STADR command (7H)
The STADR command and the succeeding 14-bits of data specify the start-address for record or playback operations of the Sequential Mode or the Random Access Mode. This command is also used to specify the start-address for digital read or write operations. The STADR command should be issued before REC, PLAY, ERASE, WRDT1, WRDT2 and SETRD commands. When this command is not issued prior to the commands described above, the operation starts at the last defined start-address. After resetting or power-on, the start-address is set to the memory's starting address by default.
MSB
0
1
1
1
X
X
X
X
X
X
A13
A12
STADR command
LSB
A11
A10
A9
A8
A7
A6
A5
A4
A3
A2
A1
A0
In the Sequential Mode, A0 through A2 for Page addresses are ignored because the record start address is specified by Sector address units. In addition , the playback start-address is specified by Page address units and all address data is valid. In the Random Access Mode ,A0 through A2 for Page addresses are ignored because the record start address is specified by Sector address units. In addition , the playback start-address is specified by Page address units and all address data is valid. The next record/playback addresses are specified by Block address units after the ML2517 starts recording or playback. And the following addresses are ignored depending on the block size.
Block size 2 sector / block 4 sectors / block 8 sectors / block 16 sectors / block
Ignored bits A0 ~ A3 A0 ~ A4 A0 ~ A5 A0 ~ A6
In the WRDT1 command, A0 ~ A2 are ignored. In the WRDT2 command, A0 ~ A3 are ignored.
24 of 38
ML2517
8. SPADR command (8H)
The SPADR command and the succeeding 14-bits of data specify the stop-address for record or playback operations of the Sequential Mode or the Random Access Mode. The SPADR command should be issued before the REC, PLAY and ERASE commands. If this command is not issued prior to the commands described above, the operation starts at the last defined stop-address. After resetting or power-on, the stop-address is set to the memory's last (highest) address by default.
MSB
1
0
0
0
X
X
X
X
X
X
A13
A12
SPADR command
LSB
A11
A10
A9
A8
A7
A6
A5
A4
A3
A2
A1
A0
9. RDADR command (9H)
The RDADR command is used to read the contents of the current memory address counter. This command can be used with either the Sequential Mode or the Random Access Mode. When the ML2517 receives this command and the following the 6-bits of dummy "0" bits, 14 bits of memory address counter contents appear sequentially at the DO pin synchronized with the SCK clock falling edge (read the data at the rising edge).
MSB
1
0
0
1
0
0
0
0
0
0
A13
A12
RDADR command
LSB
A11
A10
A9
A8
A7
A6
A5
A4
A3
A2
A1
A0
This command is provided to allow the master MCU to know the current memory counter address. This can be important for flexible control of the memory usage. The RDADR command can be used during record, playback, and erase operations or the pausing state of each of these operations. Please note that the address specified by STADR command or SPADR command is returned if the RDARD is executed right after the STADR command or SPADR command execution.
25 of 38
ML2517
10. RDSTAT command (AH)
This command requests the ML2517 to read the internal status register through the serial interface. Each bit of the internal status register is assigned as below. When the RDSTAT command is executed, 3 bits of dummy data are sent from the DO pin synchronized with the SCK clock input. Successively, 9 bits of the internal status register contents are sent through the DO pin sequentially, MSB first.
MSB
1
0
1
0
RDSTAT command
LSB
0
0
0
O8
O7
O6
O5
O4
O3
O2
O1
O0
Output bit
Symbol
Status This bit is a "1" during the following operations; - Record, Playback, Erase operations - Digital data read, digital data write operations This bit stays at a "1" not only during the operation cycles described above but also any memory management cycles. This bit shows the same status as the MON pin.
O8
MON
O7 O6 O5 O4
REC PLAY ERASE PAUSE
This bit is a "1" during Record operations. This bit is a "1" during Playback operations. This bit is a "1" during Erase operations. This bit is a "1" during Pause operations. This bit goes to a "1" synchronized with the MON pin going low after the Record, Playback, or Erase operation reaches the last address of the memory. And operations automatically stop. This bit shows the same information as the NAR pin.
O3
FULL
O2
NAR
During the Random Access Mode, this bit is a "1" when the next address input can be accepted. This bit is a "1" during digital data write operations. This bit is a "1" during digital data read operations.
O1 O0
PGM READ
26 of 38
ML2517
11. WRDT1 command (BH)
The WRDT1 command erases the 2,000 bits (cells) of the specified Sector and or writes the digital data of up to 250 bits per Page unit. The starting address is specified by the STADR command in Sector address units. The Page address bits ( A0~A2) are forced to be "0". The WRDT1 command is followed by up to 250 bits of data ( D0 ~ D249. ) The number of bits of the data stream can be less than 250. The data stream can be terminated even though the number of bits has not reached 250 by setting the CS pin to a high level. The data stream bits are stored into each flash bit cell in order starting from the specified start address.
MSB
LSB
1
0
1
1
D0
D1
D2
D3
D4
...
D247
D248
D249
WRDT1 command
Up to 250 bit data stream
The WRDT1 command can used repeatedly. The first WRDT1 command erases the whole Sectors bit cells. After every WRDT1 command execution, the address counter is incremented to indicate the next Page. The second and latter WRDT1 commands do not perform the erase operation and simply write the bit cells by 250 bit cell units ( one Page.) Repeating the WRDT1 command 8 times rewrites all the bit cells of the specified Sector. The 250 bit stream of data for each WRDT1 command is stored in an internal buffer register. After the data transfer is finished, buffered data is physically programmed into flash memory cells. The physical programming operation starts synchronized with the rising edge of the CS input signal of the ML2517. At the same time, the ML2517 sets the MON pin to high and keeps it high until the programming operation is completed. When the MON pin is high, the ML2517 is busy programming the flash cells. The master MCU must be programmed to wait until the MON pin goes low before sending the next WRDT1 command. Note that the WRDT1 command should be repeated continuously for correct page address updating. If the WRDT1 command repetition is interrupted by another command or reset-input, the address counter is initialized and the next WRDT1 command erases the whole Sector contents and starts programming from the beginning of the Sector. This repetition of the WRDT1 command should be terminated by a dummy command such as STOP. After WRDT1 command execution the internal high voltage generation circuit remains active. Current consumption is higher in this condition. The dummy command will lower the power by turning off the high voltage generator used for writing. To write into another Sector address, another STADR command is needed prior to WRDT1 command execution. Even after the 8 times repetition of WRDT1 command, the Sector address is not updated to the next Sector automatically. Note 1 Even when the length of the data stream is less than 250 bits, the flash cell programming is performed for all of the 250 bit cells. The remaining bits are regarded as "0" and "0" is programmed into all remaining bit cells. Note 2 WRDT1 command can not be executed during the record, playback, or erase operations.
27 of 38
ML2517
12. WRDT2 command (CH)
The WRDT2 command is almost the same as the WRDT1 command. The difference is the WRDT2 command works on two Sectors and the WRDT1 command works on a single Sector. The programming time is much shorter using this command than the WRDT1 command when writing multiple continuous Sectors. The WRDT2 commands erase the 4,000 bits (cells) of the specified two Sectors and writes the digital data in 250 bit (Page) units. The starting address is specified by the STADR command in two Sector address units (even address). The LSB of the Sector address (A3) and the Page address bits ( A0~A2) are forced to be "0". The WRDT2 command is followed by up to 250 bits of data stream ( D0 ~ D249. ) The number of bits of the data stream can be less than 250. The data stream can be terminated even though number of bits does not reach to 250 by setting the CS pin high. The data stream bits are stored into each flash bit cell in order starting from the specified start address.
MSB LSB
1
1
0
0
D0
D1
D2
D3
D4
...
D247
D248
D249
WRDT2 command
Up to 250 bit data stream
The WRDT2 command is used repeatedly. The first WRDT2 command erases the all of the two Sectors bit cells. After every WRDT2 command, the address counter indicates the next Page (Please note that the Page address is updated crossing the Sector boundary between low and high Sectors). The second and latter WRDT2 command do not perform the erase operation and simply write into the bit cells by 250 bit cell units (one Page). Repeating the WRDT2 command 16 times, rewrites the all the bit cells of the specified two Sectors. The 250 data stream bits of each WRDT2 command are stored in an internal buffer register. After the data transfer is finished, buffered data is physically programmed into the flash memory cells. The physical programming operation starts synchronized with the rising edge of the CS input signal of the ML2517. At the same time, the ML2517 sets the MON pin high and keeps it high until the programming operation is completed. When MON pin is high, the ML2517 is busy programming the flash cells. The master MCU must be programmed to wait until MON pin goes low before sending the next WRDT2 command. Note that the WRDT2 command should be repeated continuously for correct page address updating. If the WRDT2 command repetition is interrupted by another command or reset-input, the address counter is initialized and the next WRDT2 command will erase the two Sectors contents and start programming from the beginning of the even (first) Sector. The repetition of WRDT2 command should be terminated by a dummy command such as STOP. After the WRDT2 command execution, the internal high voltage generation circuit remains active. Current consumption is higher. Power consumption can be reduced with a dummy command. To write into another Sector, another STADR command is needed prior to the WRDT2 command execution. Even after the 16 times repetition of WRDT2 commands, the Sector address is not updated to the next even Sector automatically. Note 1 Even when the length of the data stream is less than 250 bits, the flash cell programming is performed for all 250 cells. The remaining bits are regarded as "0" and "0" is programmed into the remaining cells. Note 2 The WRDT2 command can not be used during record, playback, or erase operations.
28 of 38
ML2517
13. SETRD command (DH)
The SETRD command retrieves 250 bits of digital data from the flash memory starting at the specified address and stores the data into an internal register. The start-address should be specified by the STADR command prior to the SETRD command. The start-address is specified in Page address units. The MON pin output goes high during the digital data read operation, and goes low again after the operation is finished. The ML2517 is then ready for an RDDT command. No data bits are required following this command. If there are any data bits, they are ignored.
MSB LSB
1
1
0
1
SETRD command
14. RDDT command (EH)
The RDDT command reads out the data that has been provided by the SETRD command in the internal buffer register. Up to 250 bits data can be sent out through DO pin synchronized with the SCK clock input. Note that one dummy "0" data bit follows the RDDT command preceding the data stream. The data transfer can be terminated even before all bits (250 bits) are transferred by setting the CS pin high.
MSB LSB
1
1
1
RDDT command
0
0
D0
D1
D2
D3
...
D247
D248
D249
Dummy bit
15. PDWN command (FH)
The PDWN command stops the all of ML2517 operations and sets the low power consumption mode (Power-down mode.) If there are any data bits following the PDWN command, they are ignored. By reset input or CS pin input going low, the ML2517 resumes from the power-down mode.
MSB LSB
1
1
1
1
PDWN command
29 of 38
ML2517
n Serial Peripheral Interface (SPI)
The ML2517 communicates with the external MCU through the industry standard Serial Peripheral Interface (SPI). The ML2517 discriminates of Mode0 or Mode1 automatically from a level on the SCK pin at the falling edge of the CS pin. Mode0 is selected when a level on the SCK pin is "LOW" at the falling edge of the CS pin. The data signal applied to the DI pin is captured at the rising edge of the SCK signal. Mode1 is selected when a level on the SCK pin is "HIGH" at the falling edge of the CS pin. The data signal applied to the DI pin is captured at the falling edge of the SCK signal. The following charts show timing for Mode 0.
1. Timing for Write Command Data
The following charts show timings for writing command data. (1) The data transfer starts by changing the CS pin to the low level. The low input to the CS pin informs the ML2517 that the data transfer procedure is starting. The SCK level must also be low. (2) After the CS pin goes low, the ML2517 is ready for data transfer. The command bits and data bits are applied to DI pin synchronized with the SCK signal, starting with the MSB in serial order. The data signal applied to the DI pin is captured at the rising edge of the SCK signal. (3) After the last bit is fetched, the SCK signal should go low and stay low. The CS signal should be set high. Returning the CS pin high indicates that the data transfer is ended. Then the ML2517 starts command execution. Note: Note: RDADR, RDSTAT, WRDT and RDDT commands start execution immediately after the 4th bit of the command is fetched even before the CS pin goes high. If the CS pin is set high at times other than after the 4th, 8th, 16th , or 24th bit is fetched, the command input is disregarded.
l
4-bit command format
CS(I) SCK(I) DI(I)
C3 C2 C1 C0 C3 C2 C1 C0
[ Applicable commands ] REC, PLAY, STOP, PAUSE, ERASE, SETRD, PDWN
30 of 38
ML2517
l
8-bit command format
CS(I) SCK(I) DI(I)
C3 C2 C1 C0 D3 D2 D1 D0 C3 C2 C1
[ Applicable command ] MODE,REC, PLAY, STOP, PAUSE, ERASE, SETRD, PDWN
31 of 38
ML2517
l
16-bit command format
CS(I) SCK(I) DI(I)
C3 C2 C1 C0 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
[ Applicable command ] MODE,REC,PLAY,STOP,PAUSE,ERASE,SETRD,PDWN l
24-bit command format
CS(I)
1 2 3 4 5 6 7 8 9 10 11 12
SCK(I) DI(I) CS(I)
13 14 15 16 17 18 19 20 21 22 23 24
C3
C2
C1
C0
X
X
X
X
X
X
A13 A12
SCK(I) DI(I)
A11 A10 A9 A8 A7 A6 A5 A4 A3 A2 A1 A0
[ Applicable command ] STADR, SPADR,MODE,REC,PLAY,STOP,PAUSE,ERASE,SETRD,PDWN
32 of 38
ML2517
l
Digital data write timing (WRDT command)
CS(I)
1 2 3 4 5 6 7 8 9 10 11 12 13 14
SCK(I) DI(I)
C3 C2 C1 C0 D0 D1 D2 D3 D4 D5 D6 D7 D8 D9
CS(I)
246 247 248 249 250 251 252 253 254 255
SCK(I) DI(I)
D242 D243 D244 D245 D246 D247 D248 D249
X
33 of 38
ML2517
2. Timing for Data Read Commands
The timing for the RDSTAT, RDADR and RDDT commands is shown below. In the same manner as the write command timing, command bits start after the CS pin is set low and the data is fetched at the rising edge of the CLK signal. For each command, a different delay time is inserted between the 4th bit of the command (C0) and the 1st bit of data (O8, A13, or D0) to allow for data setting. Please refer to the timing diagram for the delay cycles of each command. During delay cycles, the DO pin stays low. The Read command is terminated by setting the CS pin high. Even if all data bits have not been read, the DO pin goes to the high impedance state. l
Status register read timing (RDSTAT command)
CS(I) SCK(I) DI(I) DO(O) Hi-Z
C3 C2 C1 C0 O8 O7 O6 O5 O4 O3 O2 O1 O0 Hi-Z
34 of 38
ML2517
l
Memory address counter read timing (RDADR command)
CS(I)
1 2 3 4 5 6 7 8 9 10 11 12 13 14
SCK(I) DI(I) DO(O) Hi-Z CS(I)
15 16 17 18 19 20 21 22 23 24
C3
C2
C1
C0 A13 A12 A11 A10 A9
SCK(I) DI(I) DO(O) A9 A8 A7 A6 A5 A4 A3 A2 A1 A0
Hi-Z
35 of 38
ML2517
l
Digital data read timing (RDDT command)
CS(I)
1 2 3 4 5 6 7 8 9 10 11 12 13 14
SCK(I) DI(I) DO(O) Hi-Z CS(I)
246 247 248 249 250 251 252 253 254 255
C3
C2
C1
C0 D0 D1 D2 D3 D4 D5 D6 D7 D8 D9
SCK(I) DI(I) DO(O)
D241 D242 D243 D244 D245 D246 D247 D248 D249
Hi-Z
36 of 38
ML2517
n SAMPLE APPLICATION
Power supply ( +3V )
0.1F 0.1F
DVDD
AVDD
RESET CS SCK AOUT MCU DI DO MON NAR
10K Speaker Amp. Speaker
MSC1157
MIN
0.47F 100K Microphone To SG pin 10 K 0.47F 51pF
MOUT TEST1 LIN
470 K 51pF
ML2517
EXTCLK SG AGND
3300pF
LOUT ROSC DGND
33 K
37 of 38
ML2517
Notice to our Users
1. The content of this document is subject to change in the future without prior notice for improvement of the product or technical update. Therefore, in actual use, please make sure whether the description herein reflects the most recent technology. 2. The summary of operations and sample circuit diagram contained in this document are to explain standard and/or common operations and usage of the product. So, in actual use of the product, be sure to design your circuitry and WCB layout taking other external factors into your considerations. 3. Use the product within such guaranteed ranges as Absolute Maximum Ratings, Operating Voltage Range, Operating Temperature Range, and etc. OKI shall not be liable for any results or outcome caused from such misuse or improper use of this product as being used in non-guaranteed ranges. 4. In conjunction with the use of this product, or information and/or drawings contained in this document, OKI is not in a position to guarantee or grant licensing on third parties' intellectual property, industrial property and/or any other related rights. Therefore, OKI is not liable for any infringements against third parties' rights. 5. Although OKI is using its best efforts to improve product quality and reliability, by the nature of the product it is considered inevitable to see some mal-functions or defective product at certain probability. Therefore, in actual use of Oki's product, please be sure to take ample safety allowance in your design of your devices or systems, so that your device or system using such mal-functional or defective products may not cause your customer any physical or economical damage. 6. The product described in this document is intended only for use in development or evaluation works of your system and/or system control software program. In case you plan to use the product for other purposes (ex. as a part of commercial product, etc.), please consult with your distributor in advance. 7. The product described in this document may include product item(s) categorized as "Strategic Goods" under "Foreign Exchange and Foreign Trade Control Law." Export of such items or part of them is subject to Export License by Japanese Government under the law. In such case, apply for the License in advance. 8. This document is prepared with special cares for its completeness and accuracy. If you have any comment or question, please contact to: OKI Electric Industry Co., Ltd., Electronic Device Department Head-Office Annex, 4-10-3 Shibaura, Minato-ku, Tokyo 108 Phone (03)5445-6027 9. Copying or reproducing of the content of this document without Oki's prior consent is prohibited. (c)Copyright 1997 OKI ELECTRIC INDUSTRY CO., LTD.
38 of 38


▲Up To Search▲   

 
Price & Availability of ML2517

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X